package com.wzh.yebServe.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wzh.yebServe.pojo.Menu;
import com.wzh.yebServe.pojo.Role;
import com.wzh.yebServe.pojo.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author wzh
 * @create 2022/11/6 12:03
 * @Description:
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {

    /**
     * 根据用户id查询角色列表
     * @param userId
     * @return
     */
    List<Role> getRoles(Integer userId);

    List<User> getAllUsers(Integer id, String keywords);

}
